package com.cjw.mapper.database;

import com.cjw.pojo.dto.userMange.UserAuthorSimpleDTO;
import com.cjw.pojo.entity.database.User;
import com.cjw.pojo.query.systemManage.QueryAuthorDTO;
import com.cjw.pojo.query.userMange.UserQuery;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface UserMapper extends Mapper<User> {
    List<User> findAllUsersByPage(UserQuery userQuery);

    Integer findAllUsersByPageCount(UserQuery userQuery);

    /**
     * 查询全部违规用户
     * @param queryAuthorDTO
     * @return
     */
    List<UserAuthorSimpleDTO> findAllUserAuthorList(QueryAuthorDTO queryAuthorDTO);

    /**
     * 查询全部违规用户总数
     * @param queryAuthorDTO
     * @return
     */
    Integer findAllUserAuthorCount(QueryAuthorDTO queryAuthorDTO);
}
